import unittest

version = 3
class TestSkip(unittest.TestCase):
    @unittest.skip('不想执行')
    def test_1(self):
        print('方法一')
    @unittest.skipIf(version>=30,'版本号大于30，不用执行')
    def test_2(self):
        print('方法二')

    def test_3(self):
        print('方法三')
